package com.read.dubbo_server_demo.test;

import java.util.UUID;

import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Provider {
	 public static void main(String[] args) throws Exception {
	        //ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-provider.xml");
		 	ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
	        context.start();
	        /*UserService userService = (UserService)context.getBean("userServiceImpl");
	        User user = new User();
	        user.setId(UUID.randomUUID().toString());
	        user.setName("ksir");
	        user.setAge(22);
	        user.setSex(1);
	        userService.save(user);*/
	        System.in.read(); // 按任意键退出
	    }
}
